             package com.java.diagnostics.visualizer.recommender.balanced;
             
             import com.java.diagnostics.visualizer.data.AggregateData;
             import com.java.diagnostics.visualizer.data.TupleData;
             import com.java.diagnostics.visualizer.parser.vgc.constants.VGCAxes;
             import com.java.diagnostics.visualizer.recommender.Recommendation;
             import com.java.diagnostics.visualizer.recommender.RecommendationBase;
             import com.java.diagnostics.visualizer.recommender.util.RecommendationLabels;
             
             public class CalculateGMPCycleCounts
               extends RecommendationBase
               implements Recommendation
             {
               public void recommend(AggregateData data)
               {
                 TupleData gmpCollectionData = data
                   .getTupleData("VGCLabels.gmp.collections");
                 
                 if (gmpCollectionData != null) {
                   addToSummary(data, RecommendationLabels.GMP_CYCLE_COUNT, 
                     Integer.valueOf(gmpCollectionData.length()));
                   
                   addToSummary(data, RecommendationLabels.GMP_MEAN_CYCLE_COUNT, 
                     Double.valueOf(gmpCollectionData.getMeanY(VGCAxes.HASH_SIGN)));
                 }
               }
             }


